package _spring_test._CircularReference2;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: huangya
 * @Date: 2020/09/22
 * @Description:
 */
@Component
public class ClassB222Impl implements ClassB222 {

    private String b1;

    @Resource
    private ClassA222 classA222;

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public ClassA222 getClassA222() {
        return classA222;
    }

    public void setClassA222(ClassA222 classA222) {
        this.classA222 = classA222;
    }

    @Override
    public String bbb() {
        System.out.println("bbb");
        return classA222.aaa();
    }
}
